using System;
using System.Collections;
using System.Data;
using System.Data.Common;
using System.Collections.Generic;

using WHC.Pager.Entity;
using WHC.Hotel.Entity;

namespace WHC.Hotel.IDAL
{
	/// <summary>
	/// ITeaOrder 的摘要说明。
	/// </summary>
	public interface ITeaOrder : IBaseDAL<TeaOrderInfo>
	{
        /// <summary>
        /// 获取当前入住房间的订单信息
        /// </summary>
        /// <param name="roomNo"></param>
        /// <returns></returns>
        TeaOrderInfo GetCurrentOrder(string roomNo);

        /// <summary>
        /// 获取结账单相关的所有订单ID信息
        /// </summary>
        /// <returns></returns>
        List<int> GetRelatedOrderID(string billNumber);


        /// <summary>
        /// 更新订单的结账状态和时间
        /// </summary>
        /// <param name="Id">订单ID</param>
        /// <param name="isCheckOut">是否结账</param>
        /// <param name="checkOutDate">结账时间</param>
        /// <param name="billNumber">结账账单号</param>
        /// <returns></returns>
        bool UpdateCheckOut(int Id, bool isCheckOut, DateTime checkOutDate, string billNumber);
    }
}